<!--
 * @Date: 2023-10-13 10:47:59
 * @LastEditTime: 2023-10-17 13:41:11
 * 介绍:
-->
<cfg lang="json">
{
  "navigationBarTitleText": "主页",
  "enablePullDownRefresh": false,
  "navigationStyle": "custom"
}
</cfg>

<script setup lang="ts">
import router from "@/hooks/router";
const data = reactive({
  viewId: "",
});
function toMetting() {
  router.push("src/pages/metting/metting.nvue", {
    query: {
      viewId: data.viewId,
    },
  });
}
onLoad(() => {
  uni.hideTabBar();
});
</script>

<template>
  <CpageView>
    <view>云助手测试版</view>
    <Rinput v-model="data.viewId" label="房间号：">
      <template #right>
        <Rbutton @click="toMetting">
          {{ data.viewId ? "加入房间" : "创建房间" }}
        </Rbutton>
      </template>
    </Rinput>
  </CpageView>
</template>
<style lang="scss" scoped></style>
